package com.gitee.wsl.doc.prosemirror.model.node

import com.gitee.wsl.doc.prosemirror.model.attr.Attrs
import com.gitee.wsl.doc.prosemirror.model.mark.Mark

open class InlineNode(
    // The type of node that this is.
    type: NodeType,
    // An object mapping attribute names to values. The kind of attributes allowed and required are
    // [determined](#model.NodeSpec.attrs) by the node type.
    attrs: Attrs,
    // The marks (things like whether it is emphasized or part of a link) applied to this node.
    marks: List<Mark> = Mark.none
):Node(type=type, attrs=attrs, marks = marks){

    init {
        require( type.inlineContent ){"not inlineContent type"}
    }



}